/**
 * @author LKQ
 * @date 2021/12/12 17:05
 * @description
 */
public class Solution {
    public static void main(String[] args) {
        Solution solution = new Solution();
        int[] nums = {2, 5, 1, 3, 4, 7};
        int n = 3;
        solution.shuffle(nums, n);
    }

    public int[] shuffle(int[] nums, int n) {
        int[] newNums = new int[nums.length];
        int k = 0;
        for (int i = 0; i < n; i++) {
            newNums[k++] = nums[i];
            newNums[k++] = nums[n+i];
        }
        return newNums;
    }
}
